Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Incorrect reference frame used in HD for WAMIT/WAMIT2 #915

Merged

Conversation

andrew-platt
Copy link
Collaborator

This PR is ready to merge

Bug description
An incorrect reference frame was applied to mesh used for the potential flow bodies when rotated using the PtfmRefztRot input in the main HydroDyn input file. This mesh reference orientation should have been set to the identity.

@rdamiani found this bug in testing a proprietary floating platform design including both Morison and potential flow elements. He had noticed that rotating the WAMIT body produced a different period in a pitch free decay test. It is expected that this frequency would be identical for an axisymmetric WAMIT body. See #914 for plots.

For further testing, a very simple test using a purely potential flow (WAMIT body) floating platform from the ITI Barge test case (5MW_ITIBarge_DLL_WTurb_WavesIrr regression test). Turning off waves and wind, a free decay test from -5 degrees initial pitch is performed.

Before fix:
Screen Shot 2021-11-10 at 2 08 33 PM

After bug fix:
Screen Shot 2021-11-10 at 2 12 34 PM

Related issue, if one exists
#914

Impacted areas of the software
Potential flow (WAMIT) bodies in HydroDyn that are rotated will be affected. No regression tests currently exist using this feature.

This was causing strange results in a pitch free decay when a symmetric potential flow (WAMIT) body was rotated by 180 degrees.
@andrew-platt
Copy link
Collaborator Author

Closes #914

Copy link
Collaborator

@jjonkman jjonkman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I talked through this @andrew-platt and agree with this fix.

@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2021

Codecov Report

Merging #915 (3a1b86c) into dev (a5637c9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #915   +/-   ##
=======================================
  Coverage   11.17%   11.17%           
=======================================
  Files         211      211           
  Lines      310636   310636           
  Branches   181311   181308    -3     
=======================================
+ Hits        34719    34722    +3     
  Misses     231795   231795           
+ Partials    44122    44119    -3     
Flag Coverage Δ
regtests 11.06% <100.00%> (+<0.01%) ⬆️
unittests 2.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
modules/hydrodyn/src/HydroDyn.f90 16.26% <100.00%> (+0.06%) ⬆️
modules/hydrodyn/src/WAMIT.f90 39.10% <100.00%> (+0.13%) ⬆️
modules/hydrodyn/src/WAMIT2.f90 18.27% <100.00%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5637c9...3a1b86c. Read the comment docs.

@andrew-platt andrew-platt merged commit a4d62ac into OpenFAST:dev Nov 11, 2021
@andrew-platt andrew-platt deleted the b/HD_PtfmRefztRot_PitchDecay branch November 16, 2021 17:26
@rafmudaf rafmudaf mentioned this pull request Mar 2, 2022
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants